package mystream;

import java.util.ArrayList;
import java.util.stream.Stream;

public class StreamDemo01 {
    public static void main(String[] args) {
        ArrayList<String> list1 = new ArrayList<>();
        ArrayList<String> list2 = new ArrayList<>();
        ArrayList<String> list3 = new ArrayList<>();

        list1.add("张一一");
        list1.add("张三三");
        list1.add("张二");
        list1.add("周止");
        list1.add("赵敏");

//        list1.stream()
//                .filter(name->name.startsWith("张"))
//                .filter(name->name.length()>=3)
//                .forEach(name-> System.out.println(name));
//        Stream<String> stream  = list1.stream();
//        stream.forEach(s-> System.out.println(s));



    }
}
